﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.Dto;
using Happy.Archetype;
using Happy.Cms.Query.Shares;

namespace Happy.Cms.Query.Articles
{
    [ViewModel]
    public sealed class ArticleView :
        IId<Guid>,
        IOptimisticKey,
        ISeoInfoView,
        IImageInfoView
    {
        public Guid Id { get; set; }

        public byte[] OptimisticKey { get; set; }

        public string Title { get; set; }

        public Guid CategoryId { get; set; }

        public string Author { get; set; }

        public string ImageInfo_Title { get; set; }

        public string ImageInfo_Url { get; set; }

        public bool SettingInfo_Published { get; set; }

        public bool SettingInfo_ShowInTop { get; set; }

        public List<Guid> AssignedTags { get; set; }

        public string Content { get; set; }

        public DateTime? PublishDate { get; set; }

        public string SeoInfo_Title { get; set; }

        public string SeoInfo_KeyWord { get; set; }

        public string SeoInfo_Description { get; set; }

        public int Order { get; set; }
    }
}
